using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.demo.IRepositories
{
    public partial interface IproductinformationmodelRepository
    {
        /// <summary>
        /// 添加新产品
        /// </summary>
        /// <param name="product">产品信息</param>
        /// <returns>成功返回true，失败返回false</returns>
        Task<bool> AddProductAsync(productinformationmodel product);

        /// <summary>
        /// 检查产品编号是否已存在
        /// </summary>
        /// <param name="goodsCode">产品编号</param>
        /// <returns>存在返回true，不存在返回false</returns>
        Task<bool> IsProductCodeExistsAsync(string goodsCode);
    }
}

